main_collective = mcollective
collectives = mcollective
libdir = /usr/libexec/mcollective
logfile = /var/log/mcollective.log
loglevel = info
direct_addressing = 1

# Plugins
securityprovider = psk
plugin.psk = <%= @pskey %>

# Set huge value of ttl to avoid cases with unsyncronized time between nodes
# It means that ttl approximately equal to 50 days
ttl = 4294957

<% if @stomp -%>
connector = stomp
plugin.stomp.host = <%= @host %>
plugin.stomp.port = <%= @stompport %>
plugin.stomp.user = <%= @user %>
plugin.stomp.password = <%= @password %>
<% else -%>
connector = rabbitmq
plugin.rabbitmq.vhost = <%= @vhost %>
plugin.rabbitmq.pool.size = 1
plugin.rabbitmq.pool.1.host = <%= @host %>
plugin.rabbitmq.pool.1.port = <%= @stompport %>
plugin.rabbitmq.pool.1.user = <%= @user %>
plugin.rabbitmq.pool.1.password = <%= @password %>
plugin.rabbitmq.heartbeat_interval = 30
<% end -%>

# Facts
factsource = yaml
plugin.yaml = /etc/mcollective/facts.yaml

